<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:p="http://primefaces.prime.com.tr/ui">

    <ui:composition template="/template/DefaultTemplate.xhtml">
        <ui:define name="title">
            <h:outputText value="Search Sales Order"></h:outputText>
        </ui:define>
        <ui:define name="content">
            <h:form rendered="#{loginBacking.searchSalesOrder}">
                <p:panel header="Search Sales Order">
                    <p:messages />
                    <br />
                    <h:panelGrid columns="4">
                        <h:outputLabel value="Search:" />
                        <p:inputText id="input" value="#{salesOrderEntityController.input}"/>
                        <h:outputLabel value="by:" />
                        <h:selectOneMenu id="attribute" value="#{salesOrderEntityController.attribute}">
                            <f:selectItem id="purchaseOrder" itemLabel="Sales Order ID" itemValue="id" />
                            <f:selectItem id="customerId" itemLabel="Customer Name" itemValue="Name" />
                        </h:selectOneMenu>
                    </h:panelGrid>
                    <br />
                    <p:commandButton ajax="false" action="#{salesOrderEntityController.prepareSearch}" value="Search" />
                </p:panel>
            </h:form>
        </ui:define>
    </ui:composition>

</html>
